{extend name="public/layout" /}
{block name="main"}
<input type="text" id="test1">
{/block}
{block name="script"}
<script>
    var laydate = layui.laydate;
    laydate.render({
        elem: '#test1' //指定元素
    });
</script>
{/block}